package com.jomoo.card.service;

import java.util.List;

import javax.smartcardio.CardException;

import com.jomoo.common.exception.AjaxQueryException;
import com.jomoo.common.pojo.JoMooCard;

public interface CardService {
	/**
	 * 获取产品价格
	 * 
	 * @return
	 * @throws AjaxQueryException
	 */
	Float getSecondCity(Integer iSPecid) throws CardException;

	/**
	 * 服务卡录入
	 * 
	 * @return
	 * @throws AjaxQueryException
	 */
	Integer addServiceCard(String strPopName, String strPopPhone,
			String strPopAddress, String strSetupTime, Integer iProduct,
			Integer iProSpec, Integer iFirstCity, String strSecondCity,
			Integer iSetupType, Float iMoney, Integer iIsCard, Integer iCustomerId, Integer iCardFlag)
			throws CardException;
	
	/**
	 * 查询服务卡
	 * @param strPopName
	 * @param strPopPhone
	 * @param iCustomerId
	 * @param iSetupType
	 * @param iSetupState
	 * @param iProductType
	 * @param iProductSpec
	 * @param strBeginTime
	 * @param strEndTime
	 * @return
	 * @throws CardException
	 */
	List<JoMooCard> getServiceCards(String strPopName, String strPopPhone, Integer iCustomerId, Integer iSetupType, 
								Integer iSetupState, Integer iProductType, Integer iProductSpec, String strBeginTime, 
																	String strEndTime, Integer iFlag) throws CardException;
	
	/**
	 * 作废服务卡
	 * 
	 * @param iCardId
	 * @return
	 * @throws Exception
	 */
	Boolean delServiceCard(Integer iCardId) throws CardException;
	
	/**
	 * 变更服务卡状态
	 * @param iCardId
	 * @param iState
	 * @return
	 * @throws Exception
	 */
	Integer updateCardState(Integer iCardId, Integer iState, String strRemark, 
														String strLazyTime, String strRevalue) throws CardException;
	
	/**
	 * 服务卡详情
	 * @param iCardId
	 * @return
	 * @throws Exception
	 */
	List<JoMooCard> getCardViews(Integer iCardId) throws CardException;
}
